// 统计0到9数字出现的数量

#include <stdio.h>

int main(int argc, char const *argv[])
{
    const int number = 10;
    int x;
    int count[number];
    int i;

    for (i = 0; i < number; i++)
    {
        count[i] = 0;
    }
    scanf("%d", &x);
    while (x != -1)
    {
        if (x >= 0 && x <= 9)
        {
            count[x]++;
        }
        scanf("%d", &x);
    }
    for (i = 0; i < number; i++)
    {
        printf("%d: %d\n", i, count[i]);
    }

    return 0;
}